package com.quyeying.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品参数表
 * </p>
 *
 * @author skx
 * @since 2022-10-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_product_param")
public class TblProductParamEntity extends Model<TblProductParamEntity> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品id
     */
    private Long pid;

    /**
     * 参数名称
     */
    private String paramName;

    /**
     * 参数内容
     */
    private String paramValue;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
